﻿@if (Session["username"]!=null)
{
    <text>
        
        Hello, <span class="style3">&gt;&gt; 欢迎你！</span> @ViewData["teachername"]  | <span class="style3">帐号：</span> @Session["username"] 
          @* @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!*@
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">退出</a>
        }
    </text>
} 


   else {
    <ul>
        <li><a href="@Url.Action("Login", "Account")" class="navbar-link" id="loginLink"><i class="icon-signin icon-large"></i><span class=""> 登录</span></a></li>
        
    </ul>
}
